import request from '@/utils/request';

// 分页查询长流程概况列表
export function overviewList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/longProcess/overviewList',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'LSH',
		},
	});
}

// 查询长流程详情列表
export function detailList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/longProcess/detailList',
		method: 'post',
		data: data,
	});
}

// 长流程业务导出Excel
export function exportExcel(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/longProcess/exportExcel',
		method: 'post',
		data: data,
		timeout: 30000,
		responseType: 'blob',
	});
}
